import request from '@/utils/request'
// const prefix = 'health-channel/'
const prefix = 'admin/'
// 学耕教育校区Api

// 校区-列表
export function getSchoolList(data) {
  return request({
    url: prefix + 'school/getSchoolList',
    method: 'post',
    data
  })
}
// 校区-新增
export function addSchool(data) {
  return request({
    url: prefix + 'school/addSchool',
    method: 'post',
    data
  })
}

// 校区-修改
export function modifySchoolById(data) {
  return request({
    url: prefix + 'school/modifySchoolById',
    method: 'post',
    data
  })
}

// 校区-根据主键查询校区
export function getSchoolById(schoolId) {
  return request({
    url: prefix + 'school/getSchoolById/' + schoolId,
    method: 'get'
  })
}

// 校区-删除
export function removeSchoolById(schoolId) {
  return request({
    url: prefix + 'school/removeSchoolById/' + schoolId,
    method: 'delete'
  })
}
